home *** CD-ROM | disk | FTP | other *** search
/ Business Shareware / Business Shareware.iso / start / gfxapps / grphca23 / mulpol.plt < prev    next >
Encoding:
Text File  |  1993-04-16  |  797 b   |  53 lines

  1. [ mulpol.plt - multiple polynomials
  2.  
  3. paper size 11 by 8.5
  4. nobeep
  5.  
  6. char size .1
  7. map x 0 50 y -4000000 4000000
  8. divi x 5,5 y 4,5
  9. format x 0 y 0
  10. data from file 'lab4.dat'
  11. draw x y
  12. frame
  13.  
  14. xlabel 'change in position (cm)'
  15. ylabel 'Energy (ergs)'
  16.  
  17. plot x y add
  18.  
  19. # testing polyfit 1
  20. pen color yellow
  21. polyfit
  22.  
  23. pen color green
  24. column 3 is y
  25. pen style 5
  26. plot x y add
  27.  
  28. # testing polyfit 2
  29. pen color yellow
  30. polyfit
  31.  
  32. pen color green
  33. column 4 is y
  34. pen style 3
  35. plot x y add
  36.  
  37. # testing polyfit 3
  38. pen color yellow
  39. polyfit
  40. #show fit
  41.  
  42. pen color green
  43. pen style 1
  44.  
  45. legend framed at 6.5 3.5
  46. pen style 1 'Kinetic Energy'
  47. pen style 5 'Potential Energy'
  48. pen style 3 'Total Mechanical Energy'
  49. end
  50.  
  51. color lblue
  52. char font 3 size .2 slant 10
  53. title 'Multiple Polynomial Fits'